from django.urls import path
from rest_framework.routers import SimpleRouter

from users.views import oauth, user
from users.views.user import UserModelViewSet

app_name = 'users'

routes = SimpleRouter()
routes.register('users', UserModelViewSet, basename='users')

urlpatterns = [
    path('login/', oauth.LoginAPIView.as_view()),
    path('user_info/', user.UserInfoAPIView.as_view()),
    path('user_info_1/', user.UserInfoAPIView_1.as_view()),
    path('reset_password/', oauth.ResetPasswordAPIView.as_view()),
    path('users/<int:uid>/state/<int:type>/', user.ModifyUserStateAPIView.as_view()),
]

urlpatterns += routes.urls